package com.wish.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@Document(indexName = "essave" , type = "EsSave")
public class EsSave {
    @Id
    private String Id;

    private String houseId;

    /**
     * 封面
     */
    private String frontCover;

    private String roomName;

    private String roomCode;

    private Double proportion;

    private Integer direction;

    private Double rental;

    private String decorateStyle;

    private String buildingName;

    private Integer floor;

    /**
     * 集中式房源楼层总数
     */
    private Integer floorCount;

    private Integer status;

    private String privateFacility;

    /**
     * 推荐房源1.推荐 2.不推荐
     */
    private Integer recommended;

    private Date createTime;

    private String styleId;

    /**
     * 装修时间
     */
    @DateTimeFormat(pattern = "yyyy-mm-dd")
    private Date finishDate;

    /**
     * 空置时间
     */
    @DateTimeFormat(pattern = "yyyy-mm-dd")
    private Date vacancyDate;

    @DateTimeFormat(pattern = "yyyy-mm-dd")
    private Date updateTime;

    private Integer premisesId;

    private Integer leaseType;

    private String buildingNo;

    private String unitNo;

    private String roomNo;

    private String flatName;

    private Integer room;

    private Integer hall;

    private Integer decorate;

    /**
     * 支付方式-押 1 押一 2 押二 3 押三
     */
    private Integer paymentMortgage;

    /**
     * 支付方式-付 1 付一 2 付二 3 付三 4 付四 5 付五 6 付六
     */
    private Integer paymentPay;

    private Integer manager;

    private Integer type;

    private String publicFacility;

    private String introduce;

    private Integer publishStatus;

    private String createBy;

    private String outsideId;

    /**
     * 楼盘名称
     */
    private String name;

    /**
     * 省
     */
    private Integer province;

    /**
     * 市
     */
    private Integer city;

    /**
     * 区
     */
    private Integer county;

    /**
     * 商圈
     */
    private String commercialArea;

    private String subway;

    /**
     * 地址
     */
    private String address;

    /**
     * 容积率
     */
    private Double grossPlotRatio;

    /**
     * 绿化率
     */
    private Double greenCoverage;

    /**
     * 楼栋数
     */
    private Integer buildingCount;

    /**
     * 得房率
     */
    private Double efficiency;

    /**
     * 开发商
     */
    private String developer;

    /**
     * 物业管理公司
     */
    private String estate;


    /**
     * 社区类型
     */
    private String communityType;

    /**
     * 建筑类型
     */
    private String buildingType;

    /**
     * 物业类型
     */
    private String premisesType;

    /**
     * 经度
     */
    private String longItude;

    /**
     * 纬度
     */
    private String latItude;

    private String subwayName;

    private String provinceName;

    private String cityName;

    private String countyName;

    private String bcName;

    private String mName;

}
